package com.wochao.web.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wochao.model.entity.BrowsingHistory;
import com.wochao.web.app.vo.history.HistoryItemVo;

public interface BrowsingHistoryService extends IService<BrowsingHistory> {

    /**
     * 分页查询浏览历史
     *
     * @param page
     * @param userId
     * @return
     */
    IPage<HistoryItemVo> pageQueryHistory(IPage<HistoryItemVo> page, Long userId);

    /**
     * 保存浏览历史
     *
     * @param userId
     * @param id
     */
    void saveHistory(Long userId, Long id);
}